From ccc3679a6221f99e85648ec05e818a4437f911f5 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 9 Feb 2011 14:40:04 +0100 Subject: [PATCH] stylecontext: Use the common approach for priate pointers Has two advantages: 1) consistency 2) "print *context->priv" actually works in gdb --- gtk/gtkstylecontext.c | 3 +-- gtk/gtkstylecontext.h | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index f005eb15fd..c64ada7a6b 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -406,7 +406,6 @@ * */ -typedef struct GtkStyleContextPrivate GtkStyleContextPrivate; typedef struct GtkStyleProviderData GtkStyleProviderData; typedef struct GtkStyleInfo GtkStyleInfo; typedef struct GtkRegion GtkRegion; @@ -468,7 +467,7 @@ struct AnimationInfo GArray *rectangles; }; -struct GtkStyleContextPrivate +struct _GtkStyleContextPrivate { GdkScreen *screen; diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index 80d3488480..2fad447bd5 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -40,11 +40,12 @@ G_BEGIN_DECLS typedef struct _GtkStyleContext GtkStyleContext; typedef struct _GtkStyleContextClass GtkStyleContextClass; +typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate; struct _GtkStyleContext { GObject parent_object; - gpointer priv; + GtkStyleContextPrivate *priv; }; struct _GtkStyleContextClass -- 2.30.2